# frozen_string_literal: true

class GqlTypes::BaseModel < GqlTypes::BaseObject
  field :id, ID, null: false
  def id
    RulesEngineSchema.encode_base64("#{self.class.name}/#{object.id}")
  end

  field :created_at, GqlTypes::DateTimeType, null: false, camelize: false
  field :updated_at, GqlTypes::DateTimeType, null: false, camelize: false
end
